package com.sky.dish;

import com.sky.category.api.client.aip.CategoryClient;
import com.sky.category.api.client.conf.DefaultFeignConf;
import com.sky.properties.JwtProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@EnableFeignClients(basePackageClasses = CategoryClient.class,defaultConfiguration = DefaultFeignConf.class)
@SpringBootApplication
//@EnableTransactionManagement //开启注解方式的事务管理
//开启扫描配置
@EnableConfigurationProperties(JwtProperties.class)
@Slf4j
public class DishApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DishApplication.class, args);

        /*System.out.println("EmployeeApplication加载的Bean有:");
        String[] beanDefinitionNames = context.getBeanDefinitionNames();
        for (String name : beanDefinitionNames) {
            System.err.println(name);
        }*/

        log.info("server started DishApplication server...");
    }
}
